home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / event.d / rc6 < prev    next >
Text File  |  2008-09-29  |  422b  |  24 lines

  1. # rc6 - runlevel 6 compatibility
  2. #
  3. # This task runs the old sysv-rc runlevel 6 ("reboot") scripts.
  4.  
  5. start on runlevel 6
  6.  
  7. stop on runlevel [!6]
  8.  
  9. console output
  10. script
  11.     set $(runlevel || true)
  12.     if [ "$2" != "0" ] && [ "$2" != "6" ]; then
  13.         set $(runlevel --set 6 || true)
  14.         fi
  15.  
  16.     if [ "$1" != "unknown" ]; then
  17.         PREVLEVEL=$1
  18.         RUNLEVEL=$2
  19.         export PREVLEVEL RUNLEVEL
  20.     fi
  21.  
  22.     exec /etc/init.d/rc 6
  23. end script
  24.